package com.zheng.hr.dao.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.zheng.common.base.BaseEntity;
import com.zheng.common.base.PageEntity;

import java.io.Serializable;

/**
 * <p>
 * 休假表
 * </p>
 *
 * @author likun
 * @since 2018-05-03
 */
@TableName("hr_paid_leave")
public class HrPaidLeave extends PageEntity {

    private static final long serialVersionUID = 1L;

    private Integer id;
    @TableField("username")
    private String username;
    /**
     * 类型 0年假 1加班
     */
    private Integer type;
    /**
     * 年假年份
     */
    private Integer year;
    /**
     * 天数
     */
    private Double days;
    /**
     * 叠加小时数
     */
    @TableField("left_hours")
    private Integer leftHours;
    /**
     * 已使用天数
     */
    @TableField("used_days")
    private Double usedDays;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getYear() {
        return year;
    }

    public void setYear(Integer year) {
        this.year = year;
    }

    public Double getDays() {
        return days;
    }

    public void setDays(Double days) {
        this.days = days;
    }

    public Integer getLeftHours() {
        return leftHours;
    }

    public void setLeftHours(Integer leftHours) {
        this.leftHours = leftHours;
    }

    public Double getUsedDays() {
        return usedDays;
    }

    public void setUsedDays(Double usedDays) {
        this.usedDays = usedDays;
    }

    @Override
    protected Serializable pkVal() {
        return id;
    }

    @Override
    public String toString() {
        return "HrPaidLeave{" +
                "id=" + id +
                ", type=" + type +
                ", year=" + year +
                ", days=" + days +
                ", usedDays=" + usedDays +
                "}";
    }
}
